package com.halachawiki.shared;

import java.util.Iterator;
import java.util.List;

public class SharedUtil {
	public static String join(List<String> s, String delimiter) {
	    if (s.isEmpty()) return "";
	    Iterator<String> iter = s.iterator();
	    StringBuffer buffer = new StringBuffer(iter.next());
	    while (iter.hasNext()) buffer.append(delimiter).append(iter.next());
	    return buffer.toString();
	}
}
